home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ToolWindowProxy.cpp
< prev
next >
Wrap
Text File
|
1997-08-09
|
2KB
|
73 lines
/*
* File: ToolWindowProxy.cpp
* Summary: A stand in for TToolWindow that behaves better when it's being edited.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/24/96 JDJ Created
*/
#include "ToolWindowProxy.h"
#include <ZToolWindow.h>
#include <ZStream.h>
// ===================================================================================
// class CToolWindowProxy
// ===================================================================================
static TReanimatorRegister<CToolWindowProxy> sToolWindowProxyRegistrar;
static TReanimatorRegister<CToolWindowProxy> sWindowRegistrar("TToolWindow");
//---------------------------------------------------------------
//
// CToolWindowProxy::~CToolWindowProxy
//
//---------------------------------------------------------------
CToolWindowProxy::~CToolWindowProxy()
{
// Delete the view container while we're still the right type.
this->DoDeleteSubPanes();
}
//---------------------------------------------------------------
//
// CToolWindowProxy::CToolWindowProxy ()
//
//---------------------------------------------------------------
CToolWindowProxy::CToolWindowProxy()
{
}
//---------------------------------------------------------------
//
// CToolWindowProxy::CToolWindowProxy (SWindowInfo, MCommander*)
//
//---------------------------------------------------------------
CToolWindowProxy::CToolWindowProxy(const SWindowInfo& info, MCommander* superCommander) : CWindowProxy(info, superCommander)
{
}
//---------------------------------------------------------------
//
// CToolWindowProxy::Create [static]
//
//---------------------------------------------------------------
MReanimatable* CToolWindowProxy::Create(MReanimatable*)
{
if (msUseProxy)
return new CToolWindowProxy;
else
return new TToolWindow;
}